package main

import "fmt"

//const 来定义枚举类型| 每行iota都会累加1
//itoa 只能配置const 使用
const (
	BEIJING  = 10 * iota
	SHANGHAI //iota=1
	SHENZHEN //iota=1
)
const (
	a, b = iota + 1, iota + 2
	c, d
	e, f

	g, h = iota * 2, iota * 3
)

func main() {

	//常量
	const (
		name = "str"
	)
	fmt.Println(name)
	fmt.Println(SHANGHAI)
}
